# from django.conf import settings
from itsdangerous import TimedJSONWebSignatureSerializer

dangerous = TimedJSONWebSignatureSerializer(secret_key='123', expires_in=1)
a = dangerous.dumps('123')
print(a.decode())
b = dangerous.loads(a)
print(b)
print(a)